<template>
  <div>
    <div v-for="item of categoryList" :key="item.id">
      <div class="ticket">
        <i></i>
        <span>{{item.title}}</span>
      </div>
      <div v-if="item.children" class="children">
        <detail-ticket :categoryList="item.children"></detail-ticket>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "DetailTicket",
  props: ["categoryList"]
};
</script>
<style lang="scss" scoped>
.ticket {
  display: flex;
  align-items: center;
  margin-left: 10px;
  border-bottom: 1px solid #eee;
  line-height: 40px;
  i {
    width: 30px;
    height: 30px;
    display: block;
    background: url("~@/assets/icon.png");
    background-size: 30px;
    background-position-y: -30px;
  }
}
.children {
  margin-left: 10px;
}
</style>
